//
//  AXFSelectDeliverAddressCell.m
//  AXFEightGroup
//
//  Created by Haozhong Chen on 2016/12/22.
//  Copyright © 2016年 ya. All rights reserved.
//

#import "AXFSelectDeliverAddressCell.h"
#import "AXFDataModel.h"

@interface AXFSelectDeliverAddressCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;

@end

@implementation AXFSelectDeliverAddressCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    
    // Initialization code
}
- (IBAction)clickedEditbutton:(id)sender
{
    if (self.clickEditBlock)
    {
        self.clickEditBlock();
    }
    else
    {
        return;
    }
    
}

-(void)setDataModel:(AXFDataModel *)dataModel
{
    _dataModel=dataModel;
    _nameLabel.text=dataModel.accept_name;
    _phoneLabel.text=dataModel.telphone;
    _addressLabel.text=dataModel.address;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
